package de.op.projectc;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import de.op.projectc.screens.MainMenuScreen;

public class MainGame extends Game {
	public SpriteBatch batch;
	Texture img;

    private Screen lastScreen;
	
	@Override
	public void create () {
		batch = new SpriteBatch();
		img = new Texture("badlogic.jpg");

        this.setScreen(new MainMenuScreen(this));
	}

	@Override
	public void render () {
        super.render();
    }

    @Override
    public void setScreen(Screen screen) {
        lastScreen = getScreen();

        super.setScreen(screen);
    }

    public Screen getLastScreen() {
        return this.lastScreen;
    }

    public void dispose() {
        batch.dispose();
    }
}
